﻿@model ExcellOnServices.Models.Account

@{
	ViewBag.Title = "Login";
	Layout = "~/Areas/Admin/Views/Shared/_LayoutLogin.cshtml";
}

<br />

<div class="panel panel-primary" style="margin-top: 50px;">
	<div class="panel-heading">Administrator Login</div>
	<div class="panel-body">
		@using (Html.BeginForm("Login", "Account", FormMethod.Post, new { enctype = "multipart/form-data", @class = "form-horizontal" }))
        {
			@Html.AntiForgeryToken()
			@Html.Hidden("returnUrl", HttpContext.Current.Request.UrlReferrer)
        
			<div class="form-group">
				@Html.LabelFor(model => model.Email, "Email (*)", new { @class = "control-label col-md-4" })
				<div class="col-md-8">
					@Html.TextBoxFor(model => model.Email, new { @class = "form-control" })
					@Html.ValidationMessageFor(model => model.Email)
				</div>
			</div>
			<div class="form-group">
				@Html.LabelFor(model => model.Password, "Password (*)", new { @class = "control-label col-md-4" })
				<div class="col-md-8">
					@Html.PasswordFor(model => model.Password, new { @class = "form-control" })
					@Html.ValidationMessageFor(model => model.Password)
				</div>
			</div>
            
			@Html.ValidationSummary(true)
			<div class="pull-right">
				<input type="submit" value="Log in" class="btn btn-primary" />
			</div>
			
		}
		<div class="clearfix"></div>
	</div>
</div>


